//
//  User.m
//  leo
//
//  Created by 常艳 on 15/8/26.
//  Copyright (c) 2015年 mdx. All rights reserved.
//

#import "User.h"

@implementation User
@synthesize uid;
@synthesize accessToken;
@synthesize createTime;
@synthesize refreshToken;
@synthesize account;
@synthesize password;
@synthesize is_active;
@synthesize type;
@synthesize nickName;
@synthesize age;
@synthesize address;
@synthesize email;
@synthesize birth;
@synthesize photoHash;
@synthesize pic_url;
@synthesize full_url;
static User *user;
+(User *)sharedSingleton
{
    
    @synchronized(self)
    {
        if(user==NULL)
            user=[[User alloc] init];
    }
    return user;
}
+(void)logout
{
    @synchronized(self)
    {
        user=NULL;
    }
}
@end
